package org.deng.learn.dubbo.spring;

import org.deng.learn.dubbo.api.service.IUserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author 邓力宾
 * @Desc
 * @since 2020/6/17 上午11:04
 */
public class SpringConsumer {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:dubbo-consumer.xml");
        context.start();
        IUserService userService = context.getBean(IUserService.class);
        System.out.println(userService.get(1));
    }
}
